//
//  ITSGetImageForCellOperation.h
//  AsiaScene
//
//  Created by Rainbow on 3/18/11.
//  Copyright 2011 iTotemStudio. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ITSTableViewCell.h"

@interface ITSGetImageForCellOperation : NSOperation {
	ITSTableViewCell *_tableCell;	
    NSString *_imageUrl;
	NSString *_imageName;
    NSInteger index;
}

@property (nonatomic, assign) NSInteger index;
@property (nonatomic, retain) ITSTableViewCell *_tableCell;
@property (nonatomic, retain) NSString *_imageUrl;
@property (nonatomic, retain) NSString *_imageName;

/*the nameToSave format should be image_category_image1.png , then the image will save in Documents/image/category/image1.png */
-(id)initWithTableCell:(ITSTableViewCell *)tableCell imageUrl:(NSString *)url nameToSave:(NSString *)name;  

-(id)initWithTableCell:(ITSTableViewCell *)tableCell imageUrl:(NSString *)url;

@end
